<?php
namespace catchAdmin\apipatient\validate;

use think\Validate;

class FwValidate extends Validate
{
    protected $rule = [
        'item_id' => 'require',
        'pack_id' => 'require',
        'content_id' => 'require'
    ];

    protected $message = [
        'item_id.require' => '缺少item_id参数',
        'pack_id.require' => '缺少pack_id参数',
        'content_id.require' => '缺少content_id参数'
    ];

    protected $scene = [
        'get_fw_pack' => ['item_id'],
        'get_fw_content' => ['item_id','pack_id'],
        'get_fw_content_detail' => ['content_id']
    ];  
}